package com.gemme.gemme.setting;

import android.os.Bundle;
import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.bumptech.glide.Glide;
import com.gemme.gemme.BaseActivity;
import com.gemme.gemme.R;
import com.gemme.gemme.view.GmWebView;
import com.gemme.gemme.view.Topview;
import com.jaeger.library.StatusBarUtil;

public class BIgPIctureActivity extends BaseActivity  {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.picture_big);

        initTop();
       initIntentData();
    }

    private void initIntentData() {
        try {
            String url = getIntent().getStringExtra("data");
            if(TextUtils.isEmpty(url))
                return;

            LinearLayout ll_content = findViewById(R.id.ll_content);
            ImageView imageView = new ImageView(mContext);
            imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
            Glide.with(mContext).load(url).into(imageView);
            ll_content.addView(imageView);

        }catch (Exception e){

        }
    }


    private void initTop() {
//        StatusBarUtil.setColor(this,getResources().getColor(R.color.white_color) );
        StatusBarUtil.setTransparent(this);
//        StatusBarUtil.setTranslucent(this,250);
        Topview topview = findViewById(R.id.topview);
        topview.setContentText("");
    }



}